package lab01;

public class Test11 {
    public static void main(String[] args) {
        int i;
        int index;
        index=0;
        for(i=2;i<=100;i++){
            int j;
            for(j=2;j<i;j++)
                if(i%j==0)
                    break;
            if(i==j)

            System.out.print(i+" ");
            index++;
            if(index%5==0)
            System.out.print("\n");
        }

    }
}
